class Animal1 {
    public void sound() {
        System.out.println("Animal sound");
    }
}
class Dog1 extends Animal1 {
    @Override
    public void sound() {
        System.out.println("Dog sound");
    }
}

public class work03 {
    public static void main(String[] args) {
        Animal1 a = new Dog1();
        a.sound();
    }
}
